package com.xdxc.exception;

public class BizException extends RuntimeException {

    private int code; // You might want to associate an error code with the exception
    private String message;

    // Constructor with message
    public BizException(String message) {
        super(message);
        this.message = message;
    }

    // Constructor with both code and message
    public BizException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    // Getters for code and message
    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
